package com.example.singletonpattern;

/**
 * @author liw
 * &#064;date  2022-10-23
 */
public class Singleton2 {

    private static final Singleton2 INSTANCE;

    private Singleton2() {
    }

    static {
        INSTANCE = new Singleton2();
    }

    public static Singleton2 getInstance() {
        return Singleton2.INSTANCE;
    }
}
